import {createStore, applyMiddleware} from 'redux';
//applyMiddleware支持中间件，支持异步
import thunk from 'redux-thunk';

import rootReducer from './reducers';


export default createStore(
    rootReducer,
    applyMiddleware(thunk)
)